﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DatabaseHelper
{
    /// <summary>
    /// PProject class present a row with main fields in Projects table
    /// </summary>
    public class PProject
    {
        #region PROPERTIES
        /// <summary>
        /// Name of pipeline survey project
        /// </summary>
        public string ProjectName { get; set; }
        /// <summary>
        /// Folder used to store all project data
        /// </summary>
        public string Location { get; set; }
        /// <summary>
        /// Summary of project
        /// </summary>
        public string Summary { get; set; }
        #endregion

        #region CONSTRUCTORS
        /// <summary>
        /// Default constructor
        /// </summary>
        public PProject()
        {
            ProjectName = "";
            Location = "";
            Summary = "";
        }

        /// <summary>
        /// Constructor with project name
        /// </summary>
        /// <param name="name">Project name</param>
        public PProject(string name)
            : this()
        {
            ProjectName = name;
        }

        /// <summary>
        /// Constructor with all properties
        /// </summary>
        /// <param name="name">Project name</param>
        /// <param name="location">Project folder location</param>
        public PProject(string name, string location, string summary)
            : this(name)
        {
            Location = location;
            Summary = summary;
        }
        #endregion
    }
}
